package com.lotus.lqmp.service;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动类
 * @author Liwei.Zhang3
 * @since 2021/12/30 15:40
 */
@Slf4j
@EnableSwagger2
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.lotus.lqmp.service.dao")
@EnableAspectJAutoProxy
@EnableFeignClients(basePackages = "com.lotus")
@EnableAsync
public class BootstrapApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(BootstrapApplication.class, args);
        log.info("{} success !", context.getEnvironment().getProperty("spring.application.name"));
    }

}
